<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>list users</title>
</head>
<body>
<table width="100%">
<tr><td>

<c:if  test="${!empty schedule1}">
	<form:form modelAttribute="schedule1" action="${pageContext.request.contextPath}/user/scheduleUpdate">
	<div id="feedback" style="width: 300px">
		<span class="color color-1"></span>
		<span class="color color-2"></span>
		<span class="color color-3"></span>
		<span class="color color-4"></span>
		<span class="color color-5"></span>   
		<div class="section"> 		
		<table width="300" height="100%">
		<br /><br />
			<tr height="20">
			<td valign="middle">E-mail</td>
			<td valign="middle"><form:input type="hidden" path="id"/><form:input path="username" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Grupa</td>
			<td valign="middle"><form:input path="group_id" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Szkolenie</td>
			<td valign="middle"><form:input path="title" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Data</td>
			<td valign="middle"><form:input path="myDate"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Miejsce</td>
			<td valign="middle"><form:input path="place"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Informacja</td>
			<td valign="middle"><form:textarea rows="4" path="info"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Przypomnienie?</td>
			<td valign="middle"><form:checkbox path="active"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Status</td>
			<td valign="middle"><form:input path="status"/></td>
			</tr>
			<tr>
			<td colspan="2" valign="top">
			<center><input type="submit" value="zapisz" /></center></td>
			</tr>
		</table>
		</div>
		</div>
	</form:form>
</c:if>

</td>
<td>

<c:if  test="${!empty schedule2}">
	<form:form modelAttribute="schedule2" action="${pageContext.request.contextPath}/user/scheduleUpdate">
	<div id="feedback" style="width: 300px">
		<span class="color color-1"></span>
		<span class="color color-2"></span>
		<span class="color color-3"></span>
		<span class="color color-4"></span>
		<span class="color color-5"></span>   
		<div class="section"> 		
		<table width="300" height="100%">
		<br /><br />
			<tr height="20">
			<td valign="middle">E-mail</td>
			<td valign="middle"><form:input type="hidden" path="id"/><form:input path="username" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Grupa</td>
			<td valign="middle"><form:input path="group_id" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Szkolenie</td>
			<td valign="middle"><form:input path="title" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Data</td>
			<td valign="middle"><form:input path="myDate"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Miejsce</td>
			<td valign="middle"><form:input path="place"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Informacja</td>
			<td valign="middle"><form:textarea rows="4" path="info"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Przypomnienie?</td>
			<td valign="middle"><form:checkbox path="active"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Status</td>
			<td valign="middle"><form:input path="status"/></td>
			</tr>
			<tr>
			<td colspan="2" valign="top">
			<center><input type="submit" value="zapisz" /></center></td>
			</tr>
		</table>
		</div>
		</div>
	</form:form>
</c:if>

</td>
<td>

<c:if  test="${!empty schedule3}">
	<form:form modelAttribute="schedule3" action="${pageContext.request.contextPath}/user/scheduleUpdate">
	<div id="feedback" style="width: 300px">
		<span class="color color-1"></span>
		<span class="color color-2"></span>
		<span class="color color-3"></span>
		<span class="color color-4"></span>
		<span class="color color-5"></span>   
		<div class="section"> 		
		<table width="300" height="100%">
		<br /><br />
			<tr height="20">
			<td valign="middle">E-mail</td>
			<td valign="middle"><form:input type="hidden" path="id"/><form:input path="username" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Grupa</td>
			<td valign="middle"><form:input path="group_id" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Szkolenie</td>
			<td valign="middle"><form:input path="title" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Data</td>
			<td valign="middle"><form:input path="myDate"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Miejsce</td>
			<td valign="middle"><form:input path="place"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Informacja</td>
			<td valign="middle"><form:textarea rows="4" path="info"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Przypomnienie?</td>
			<td valign="middle"><form:checkbox path="active"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Status</td>
			<td valign="middle"><form:input path="status"/></td>
			</tr>
			<tr>
			<td colspan="2" valign="top">
			<center><input type="submit" value="zapisz" /></center></td>
			</tr>
		</table>
		</div>
		</div>
	</form:form>
</c:if>

</td>
<td>

<c:if  test="${!empty schedule4}">
	<form:form modelAttribute="schedule4" action="${pageContext.request.contextPath}/user/scheduleUpdate">
	<div id="feedback" style="width: 300px">
		<span class="color color-1"></span>
		<span class="color color-2"></span>
		<span class="color color-3"></span>
		<span class="color color-4"></span>
		<span class="color color-5"></span>   
		<div class="section"> 		
		<table width="300" height="100%">
		<br /><br />
			<tr height="20">
			<td valign="middle">E-mail</td>
			<td valign="middle"><form:input type="hidden" path="id"/><form:input path="username" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Grupa</td>
			<td valign="middle"><form:input path="group_id" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Szkolenie</td>
			<td valign="middle"><form:input path="title" readonly="true"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Data</td>
			<td valign="middle"><form:input path="myDate"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Miejsce</td>
			<td valign="middle"><form:input path="place"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Informacja</td>
			<td valign="middle"><form:textarea rows="4" path="info"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Przypomnienie?</td>
			<td valign="middle"><form:checkbox path="active"/></td>
			</tr>
			<tr height="20">
			<td valign="middle">Status</td>
			<td valign="middle"><form:input path="status"/></td>
			</tr>
			<tr>
			<td colspan="2" valign="top">
			<center><input type="submit" value="zapisz" /></center></td>
			</tr>
		</table>
		</div>
		</div>
	</form:form>
</c:if>


</td></tr>
</table>